package com.prd.common.baseMapper;




import com.prd.common.constant.ResultMessageConstants;

import java.io.Serializable;


/**
 * 执行返回结果
 * 
 * @author xqf
 *
 */
public class ExcuteResult implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 状态
	 */
	private String code;

	/**
	 * 消息
	 */
	private String message;

	/**
	 * 执行结果
	 */
	private String data;

	public String getCode() {
		return code;
	}

	public String getData() {
		return data;
	}

	public String getMessage() {
		return message;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setData(String data) {
		this.data = data;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setMessage(ResultMessageConstants message) {
		if (message != null) {
			this.message = message.name();
		}
	}
}
